home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 October / EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso / Aminet / comm / tcp / HyperMail102.lha / HyperMail / libcgi / cgi.h next >
C/C++ Source or Header  |  1995-06-18  |  1KB  |  69 lines

  1. /*
  2.  * This file is part of the LIBCGI library
  3.  *
  4.  * Copyright 1994 by Enterprise Integration Technologies Corporation
  5.  *
  6.  * This is freeware with commercialization rights reserved; see the
  7.  * LICENSE included in the distribution for specifics.
  8.  */
  9.  
  10. #ifndef CGI_H
  11. #define CGI_H
  12.  
  13. #define MCODE_GET 1
  14. #define MCODE_POST 2
  15. #define MCODE_PUT 3
  16. #define MCODE_HEAD 4
  17.  
  18. typedef struct
  19. {
  20.   char *server_software;
  21.   char *server_name;
  22.   char *gateway_interface;
  23.   char *server_protocol;
  24.   char *server_port;
  25.   char *request_method;
  26.   char *http_accept;
  27.   char *path_info;
  28.   char *path_translated;
  29.   char *script_name;
  30.   char *query_string;
  31.   char *remote_host;
  32.   char *remote_addr;
  33.   char *remote_user;
  34.   char *auth_type;
  35.   char *remote_ident;
  36.   char *content_type;
  37.   int content_length;
  38. } cgi_info;
  39.  
  40. typedef struct festruct
  41. {
  42.   char *name;
  43.   char *val;
  44.   struct festruct *next;
  45. } form_entry;
  46.  
  47.  
  48.  
  49.  
  50. /* Prototypes */
  51. /* ---------- */
  52. char *parmval();
  53. form_entry *get_form_entries();
  54. void print_input_blank();
  55. void print_sel_list();
  56. void print_submit();
  57. void print_doc_begin();
  58. char *trim();
  59. char *sanitize();
  60. char *strmaxcpy();
  61. int get_cgi_info();
  62. int syn_mimeheader();
  63. int print_mimeheader();
  64. int syn_base_url();
  65. int print_base_url();
  66. int mcode();
  67.  
  68. #endif
  69.